package com.mall.service;

import com.mall.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author fire
 * @since 2020-04-16
 */
public interface ProductService extends IService<Product> {
    List<Product> listProduct(int pageNo, int pageSize);

    List<Product> findByKeyword(String keyword, int pageNo, int pageSize);

    List<Product> listProductByType(int typeId, int pageNo, int pageSize);

    List<Product> sortByType(int sortType, int pageNo, int pageSize);
    
    int addProduct(Product product);

    Product selectById(int productId);

}
